package com.itmk.web.goods.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.itmk.web.goods.entity.Goods;
import org.apache.ibatis.annotations.Param;

public interface GoodsMapper extends BaseMapper<Goods> {
    //根据买家id查询订单列表(购买列表)
    IPage<Goods> getOrderList(IPage<Goods> page, @Param("userId") Integer userId);


    //根据买家id查询订单列表(出售列表)
    IPage<Goods> getSalesOrderList(IPage<Goods> page, @Param("userId") Integer userId);


}
